<?php 
namespace app\model;
use think\Model;

class Invoice extends Model
{	
	public static function getTypeCn($key){
        $list = ['普票','专票'];
        return $list[$key];
    }

    public static function getTypeList(){
        $list = ['普票','专票'];
        return $list;
    }

    public static function getStatusCn($key){
        $list = ['待开票','已开票',-1=>'作废'];
        return $list[$key];
    }

    public static function getStatusList(){
        $list = ['待开票','已开票',-1=>'作废'];
        return $list;
    }
}


 ?>